<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table align='center' border='1' cellspacing='0'>
    <tr>
        <td>id</td>
        <td>name</td>
        <td>type</td>
    </tr>
    <c:forEach items="${users}" var="s" varStatus="st">
        <tr>
            <td>${s.goodsId}</td>
            <td>${s.goodsName}</td>
            <td>${s.goodsType}</td>
        </tr>
    </c:forEach>
</table>
<hr>
添加：
<form action="insert" method="post">
    id: <input type="text"  name="goodsId" ></input></br>
    name:<input type="text" name="goodsName" ></input></br>
    type:<input type="text" name="goodsType" ></input></br>
    <input type="submit"></input>
</form>
<hr>
<form action="delete" method="delete">
    所要删除的id：<input type="text" name = "goodsId"></input>
    <input type="submit"></input>
</form>
<hr>
<form action="update" method="patch">
    所要更改的id：<input type="text" name = "goodsId"></input></br>
    name:<input type="text" name = "goodsName"></input></br>
    type:<input type="text" name = "goodsType"></input></br>
    <input type="submit"></input>
</form>
<hr>
查询：
<form action="findUserByGoodsName" method="get">
    请输入name：<input type="text" id="id" name="goodsName"></input></br> <input type="submit"></input></br>
</form>
